package com.summer.main;

import com.summer.main.InterfaceTestBaseObject.InterfaceTestObject.Attribute;

//import com.summer.main.InterfaceTestObject.Attribute;

public class IntertfaceTest {

	public static void main(String[] args) {
//		InterfaceTestObject obj = new InterfaceTestObjectImpl();
//		System.out.println(obj.getAttribut().value);
//		obj.setAttribut(new Attribute("hehe"));
//		System.out.println(obj.getAttribut().value);
		
		
		InterfaceTestBaseObject obj1 =new InterfaceTestBaseObjectImpl();
		System.out.println(obj1.getAttribut().value);
		obj1.setAttribut(new Attribute("sss"));
		System.out.println(obj1.getAttribut().value);
		
		ITest test1 = new ITest(){};
		int s = test1.getId();
		System.out.println(s);
		
		ITest test2 = new ITest(){};
		int s1 = test2.getId();
		System.out.println(s1);

		System.out.println(s);
		System.out.println(s1);
		
		System.out.println(test1.getId());
		System.out.println(test2.getId());
	}
	
	public interface ITest{
		default int getId(){
			return hashCode();
		}
	}
	
}
